package cn.com.blueInfo.bpm.common.response;

import cn.com.blueInfo.bpm.common.entity.BaseExtend;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 公共字段返回类
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseVO extends BaseExtend {

    /** 排序码 */
    @Schema(description = "排序码")
    private Integer orderNumber;
    /** 域编码 */
    @Schema(description = "租户ID")
    private String tenantId;
    /** 系统编码 */
    @Schema(description = "租户系统ID")
    private String applicationId;
    /** 状态 */
    @Schema(description = "数据状态")
    private String status;
    /** 删除状态 */
    @Schema(description = "删除标识")
    private String deleted;
    /** 删除人ID */
    @Schema(description = "删除人ID")
    private String deleteUserId;
    /** 删除时间 */
    @Schema(description = "删除时间")
    private LocalDateTime deleteTime;
    /** 更新说明 */
    @Schema(description = "更新说明")
    private String remark;
    /** 创建人ID */
    @Schema(description = "创建人ID")
    private String createUserId;
    /** 创建时间 */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /** 更新人ID */
    @Schema(description = "更新人ID")
    private String updateUserId;
    /** 更新时间 */
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

}
